//
//  NormalGoodsDetailModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/8.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "NormalGoodsDetailModel.h"

@implementation NormalGoodsDetailModel

- (instancetype )initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.distance = dict[@"distance"];
        self.price = [dict[@"price"] floatValue];
        self.productBannerUrl = dict[@"productBannerUrl"];
        self.productDetail = dict[@"productDetail"];
        self.productName = dict[@"productName"];
        self.subtitle = dict[@"subtitle"];
        self.productNo = dict[@"productNo"];
        self.productParams = dict[@"productParams"];
        self.residualStock = [dict[@"residualStock"] integerValue];
        self.shopAddress = dict[@"shopAddress"];
        self.shopId = dict[@"shopId"];
        self.shopLatitude = [dict[@"shopLatitude"] doubleValue];
        self.shopLongitude = [dict[@"shopLongitude"] doubleValue];
        self.shopPhone = dict[@"shopPhone"];
        self.source = [dict[@"source"] integerValue];
        self.alreadySoldCount = [dict[@"alreadySoldCount"] integerValue];
        
        self.isfollow = [dict[@"isfollow"] boolValue];
        self.shopCarCount = [dict[@"shopCarCount"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[NormalGoodsDetailModel alloc]initWithDict:dict];
}


@end
